import Reatc, { useState, useEffect, useImperativeHandle } from 'react';
import {useTitleHook,useHttpHook} from '@/hooks'
export default function(props){
  const [state,setState]=useState('customize')
  const title=useTitleHook(state)
  useEffect(()=>{},[])

 const [result,loading]= useHttpHook({
    url:'/getListsAsync',
    method:'get',
    watch:[state]
  })
  const handleClick=()=>{
    setState('customizeChanged')
    console.log(result)
  }
  return(
    <>
      <h1 onClick={handleClick}>{title}</h1>

    </>

  )
}
